package com.bat.domain.service;

import com.bat.domain.dao.RoleDao;
import com.bat.domain.dao.UserDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: parent
 * @description:
 * @author: zhoupengfei
 * @create: 2019-09-26 17:04
 **/
@Service
@Slf4j
public class HomeService {
    @Resource
    private UserDao userDao;
    @Resource
    private RoleDao roleDao;

    public List userList(){
        testAop();
        return  userDao.selectList(null);
    }

    public String testAop() {
        log.info("exe aop method====");
        return "test aop";
    }

}